<template>
  <div id="app">
    <eleFormBuilder ref="form" :options="options" :form="form" />
  </div>
</template>

<script>
// import Builder from './components/Builder'
import HelloWorld from './components/HelloWorld'
import Test from './components/Test'
import {options, form} from "./js/form"
export default {
  name: 'App',
  components: {
    // Builder
  },
  data(){
    return {
      options:options,
      form:form
    }
  },
  mounted(){
    this.$refs.form.addComponent(Test)
    console.log(this.$refs.form.getRef());
    // console.log(this.$refs.form.addComponents([HelloWorld]))
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
